﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AppLib;




    class Common
    {

        public static AppLib.User GetLoggedUser(System.Web.UI.Page page)
        {
            AppLib.User user = page.Session["_loggedUser"] as AppLib.User;
            return user;
        }
        public static void SetLoggedUser(System.Web.UI.Page page, User user)
        {
            page.Session["_loggedUser"]=user;
        }
    }


